@function randomColor() {
  @return rgb(random(251)-1, random(256)-1, random(256)-1);
}
@mixin vp($name, $argument) {
  -webkit-#{$name}: #{$argument};
  #{$name}: #{$argument};
}

@mixin defAni($name,$argument){
  @include vp($name,$argument);
  @include vp(animation-fill-mode,forwards);
}
@mixin slide2d($dir){
  @if($dir=='left'){
    @include vp(transform,translateX(-100%));
  }@else if($dir=='right'){
    @include vp(transform,translateX(100%));
  }@else if($dir=='up'){
    @include vp(transform,translateY(-100%));
  }@else if($dir=='down'){
    @include vp(transform,translateY(100%));
  }@else if($dir=='rever   1t'){
    @include vp(transform,translateX(0px)translateY(0px));
  }
}


@mixin dir_center($direction) {
  @if ($direction=="hor") {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
  } @else if ($direction=="ver") {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
  } @else {
    position: absolute;
    left: 50%;
    top: 50%;
    transform:translateX(-50%)translateY(-50%);
    -webkit-transform:translateX(-50%)translateY(-50%);
  }
}

%doubleCenter {
  position: absolute;
  left: 50%;
  top: 50%;
  transform:translateX(-50%)translateY(-50%);
  -webkit-transform:translateX(-50%)translateY(-50%);
}


%flexCenter {
  display: -webkit-flex;
  -webkit-align-content: center;

  display: flex;
  align-items: center;
}

%fullScreenPlace {
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  position: absolute;
}
%maglev_layer {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
}

%ios_overflow {
  overflow: scroll;
  -webkit-overflow-scrolling: touch;
}

%webkit_tap {
  -wekit-tap-highlight-color: rgba(0, 0, 0, 0);
}


